<?php
    include "./base.php";
    $res = $conn->query("SELECT * FROM `houses` WHERE `type`='new'");
    $arr = array();
    while($row = mysqli_fetch_assoc($res)){
        $arr[] = $row;
    }
    echo json_encode($arr);
?>